﻿using _5E.Infrastructure.Querying;
using Melee.DataContract.Messaging;
using Melee.Models.Entity;

namespace Melee.Service.Implementations
{
    public class LoginRequestQueryGenerator
    {
        public static Query BuildQuery(LoginRequest request)
        {
            Query query = new Query();
            query.Add<Account>(a => a.Name, CriteriaOperator.Eq, request.Name);
            return query;
        }
    }
}
